package com.veryGood.service.Impl;

import com.veryGood.common.result.R;
import com.veryGood.domain.pojo.SalesDetail;
import com.veryGood.mapper.SaleManageMapper;
import com.veryGood.service.SaleManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 张清富
 * @version 1.0
 */
@Service
public class SaleManageServiceImpl implements SaleManageService {

    @Autowired
    private SaleManageMapper mapper;

    @Override
    public R add(SalesDetail salesDetail) {

        int result = mapper.add(salesDetail);
        if(result > 0 ){
            return R.success("添加成功！");
        }
        return R.error();
    }
}
